<script type="text/javascript">
	jQuery(document).ready(function(){
    	jQuery("#form1").validationEngine();
   });  
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="maintable">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top"><table width="100%" align="center" cellpadding="2" cellspacing="2" border="0">
              <tr>
                <td width="100%" align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>
                      <td class="block-block">Global Setting</td>
                    </tr>
                    <tr>
                      <td align="left" valign="top" class="border_add"><form name="form1" id="form1" action="<?php echo $submit_link;?>" method="post" enctype="multipart/form-data">
                         <table width="100%" align="left" border="0" cellpadding="5" cellspacing="1">
				<?php if($mode == 'site_info'){ ?>
                            <tr>
                              <td width="18%" align="right" valign="top" class="tbllogin"><strong>Site Information</strong> </td>
                              <td width="2%" align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td width="80%" colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
                            <tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_site_name']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_site_name']['field_key'];?>" id="<?php echo $global['global_site_name']['field_key'];?>" value="<?php echo $global['global_site_name']['field_value'];?>" class="validate[required] textbox" size="85"  /></td>
                            </tr>
			    <tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_site_url']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_site_url']['field_key'];?>" id="<?php echo $global['global_site_url']['field_key'];?>" value="<?php echo $global['global_site_url']['field_value'];?>" class="validate[required] textbox" size="85"  /></td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_meta_title']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_meta_title']['field_key'];?>" id="<?php echo $global['global_meta_title']['field_key'];?>" value="<?php echo $global['global_meta_title']['field_value'];?>" class="validate[required] textbox" size="85"  /></td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_meta_keywords']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_meta_keywords']['field_key'];?>" id="<?php echo $global['global_meta_keywords']['field_key'];?>" value="<?php echo $global['global_meta_keywords']['field_value'];?>" class="validate[required] textbox" size="85"  /></td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_meta_description']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_meta_description']['field_key'];?>" id="<?php echo $global['global_meta_description']['field_key'];?>" value="<?php echo $global['global_meta_description']['field_value'];?>" class="validate[required] textbox" size="85"  /></td>
                            </tr>
				<!--<tr>
            <td align="right" valign="middle" nowrap="nowrap"><span class="error"></span>Upload a Logo</td>
            <td align="center" valign="middle">:</td>
            <td style="width:50px;"><input type="file" name="image" id="image" type="file" /><?php echo form_error('image'); ?> &nbsp;&nbsp;&nbsp;Width : 525 px &nbsp;&nbsp;,&nbsp;&nbsp;  
Height : 110 px . &nbsp;&nbsp;
	      </td>
	    <td></td>
				</tr>-->
				<tr>
	    <td>
	    </td>
	     <td>
	    </td>
	     <td>
		 <?php if(isset($global['global_site_logo']['field_value'])) { ?>
		  <img src="<?php echo $show_Image_Path.$global['global_site_logo']['field_value']; ?>">
		<?php } ?>
		<input type="hidden" name="previous_Image" value="<?php if(isset($global['global_site_logo']['field_value'])){ echo $global['global_site_logo']['field_value'] ;} ?>">
	    </td>	
          </tr>
	                                                    
                            <tr>
                              <td align="right" valign="top" class="tbllogin">&nbsp;</td>
                              <td align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
				<?php } ?>			
							
							<?php if($mode == 'currency_conversion'){ ?>
							<!-- Start Currency Conversion Rate (INR to USD) Information-->
                            <tr>
                              <td width="25%" align="right" valign="top" class="tbllogin"><strong>Currency Conversion Rate (INR to USD)</strong> </td>
                              <td width="2%" align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td width="73%" colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_currency_conversion_rate']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">=</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_currency_conversion_rate']['field_key'];?>" id="<?php echo $global['global_currency_conversion_rate']['field_key'];?>" value="<?php echo $global['global_currency_conversion_rate']['field_value'];?>" class="validate[required] textbox" size="10" />&nbsp;INR<?php echo form_error('global_currency_conversion_rate');?></td>
							</tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin">&nbsp;</td>
                              <td align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							<!-- End Currency Conversion Rate (INR to USD) Information-->
							<?php } ?>
							<?php if($mode == 'site_info'){ ?>
							<tr>
                              <td width="25%" align="right" valign="top" class="tbllogin"><strong>Social Networking Links</strong> </td>
                              <td width="2%" align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td width="73%" colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_facebook_url']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_facebook_url']['field_key'];?>" id="<?php echo $global['global_facebook_url']['field_key'];?>" value="<?php echo $global['global_facebook_url']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_facebook_url');?></td>
							</tr>
							
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['fbappid']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['fbappid']['field_key'];?>" id="<?php echo $global['fbappid']['field_key'];?>" value="<?php echo $global['fbappid']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('fbappid');?></td>
							</tr>
							
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['fbappsecret']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['fbappsecret']['field_key'];?>" id="<?php echo $global['fbappsecret']['field_key'];?>" value="<?php echo $global['fbappsecret']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('fbappsecret');?></td>
							</tr>
							
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_twitter_url']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_twitter_url']['field_key'];?>" id="<?php echo $global['global_twitter_url']['field_key'];?>" value="<?php echo $global['global_twitter_url']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_twitter_url');?></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_google_plus_url']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_google_plus_url']['field_key'];?>" id="<?php echo $global['global_google_plus_url']['field_key'];?>" value="<?php echo $global['global_google_plus_url']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_google_plus_url');?></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_pinterest_url']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_pinterest_url']['field_key'];?>" id="<?php echo $global['global_pinterest_url']['field_key'];?>" value="<?php echo $global['global_pinterest_url']['field_value'];?>" class="validate[required] textbox" size="85"/><?php echo form_error('global_pinterest_url');?></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_youtube_url']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_youtube_url']['field_key'];?>" id="<?php echo $global['global_youtube_url']['field_key'];?>" value="<?php echo $global['global_youtube_url']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_youtube_url');?></td>
							</tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin">&nbsp;</td>
                              <td align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
			<!-- contact information-->
			<tr>
                              <td width="25%" align="right" valign="top" class="tbllogin"><strong>Contact Information</strong> </td>
                              <td width="2%" align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td width="73%" colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_telephone_number']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_telephone_number']['field_key'];?>" id="<?php echo $global['global_telephone_number']['field_key'];?>" value="<?php echo $global['global_telephone_number']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_telephone_number');?></td>
							</tr>
							
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_fax']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_fax']['field_key'];?>" id="<?php echo $global['global_fax']['field_key'];?>" value="<?php echo $global['global_fax']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_fax');?></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_mobile_number']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_mobile_number']['field_key'];?>" id="<?php echo $global['global_mobile_number']['field_key'];?>" value="<?php echo $global['global_mobile_number']['field_value'];?>" class="validate[required] textbox" size="85" /><?php echo form_error('global_mobile_number');?></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_store_timings']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><textarea name="<?php echo $global['global_store_timings']['field_key'];?>" id="<?php echo $global['global_store_timings']['field_key'];?>" class="validate[required] " rows="5" cols="53"/><?php echo $global['global_store_timings']['field_value'];?></textarea><?php echo form_error('global_store_timings');?></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_address']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><textarea name="<?php echo $global['global_address']['field_key'];?>" id="<?php echo $global['global_address']['field_key'];?>" class="validate[required] " rows="5" cols="53"/><?php echo $global['global_address']['field_value'];?></textarea><?php echo form_error('global_address');?></td>
							</tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin">&nbsp;</td>
                              <td align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							
<?php } ?>
<?php if($mode == 'payment_info'){ ?>
                             <!-- Start Authorize.Net Information-->
                            <tr>
                              <td width="25%" align="right" valign="top" class="tbllogin"><strong>HDFC Payment Gateway Information</strong> </td>
                              <td width="2%" align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td width="73%" colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_auth_net_tran_key']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_auth_net_tran_key']['field_key'];?>" id="<?php echo $global['global_auth_net_tran_key']['field_key'];?>" value="<?php echo $global['global_auth_net_tran_key']['field_value'];?>" class="validate[required] textbox" size="85" /></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_auth_net_login_id']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_auth_net_login_id']['field_key'];?>" id="<?php echo $global['global_auth_net_login_id']['field_key'];?>" value="<?php echo $global['global_auth_net_login_id']['field_value'];?>" class="validate[required] textbox" size="85" /></td>
							</tr>
							<tr>
								<td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_auth_net_url']['field_name'];?></td>
								<td align="center" valign="top" class="tbllogin">:</td>
								<td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_auth_net_url']['field_key'];?>" id="<?php echo $global['global_auth_net_url']['field_key'];?>" value="<?php echo $global['global_auth_net_url']['field_value'];?>" class="validate[required] textbox" size="85" /></td>
							</tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_auth_net_mode']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input class="validate[required]" type="radio" name="<?php echo $global['global_auth_net_mode']['field_key'];?>" id="<?php echo $global['global_auth_net_mode']['field_key'];?>" value="demo" <?php if($global['global_auth_net_mode']['field_value']=='demo') echo "checked"?>>Demo&nbsp;&nbsp;
                               <input  class="validate[required]" type="radio" name="<?php echo $global['global_auth_net_mode']['field_key'];?>" value="live" id="<?php echo $global['global_auth_net_mode']['field_key'];?>" <?php if($global['global_auth_net_mode']['field_value']=='live') echo "checked"?>>Live</td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin">&nbsp;</td>
                              <td align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
						    <?php } ?>
						    
						    	<?php if($mode == 'email_info'){ ?>
						    <tr>
                            
                           <td width="25%" align="right" valign="top" class="tbllogin"><strong>Email Information</strong> </td>
                              <td width="2%" align="center" valign="top" class="tbllogin">&nbsp;</td>
                              <td width="73%" colspan="2" align="left" valign="top">&nbsp;</td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_web_admin_name']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_web_admin_name']['field_key'];?>" id="<?php echo $global['global_web_admin_name']['field_key'];?>" value="<?php echo $global['global_web_admin_name']['field_value'];?>" class="validate[required] textbox" size="85"  /></td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_webadmin_email']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><input type="text" name="<?php echo $global['global_webadmin_email']['field_key'];?>" id="<?php echo $global['global_webadmin_email']['field_key'];?>" value="<?php echo $global['global_webadmin_email']['field_value'];?>" class="validate[required,custom[email]] textbox" size="85"  /></td>
                            </tr>
							<tr>
                              <td align="right" valign="top" class="tbllogin"><font color="#FF0000">*</font><?php echo $global['global_email_signature']['field_name'];?></td>
                              <td align="center" valign="top" class="tbllogin">:</td>
                              <td colspan="2" align="left" valign="top"><textarea name="<?php echo $global['global_email_signature']['field_key'];?>" id="<?php echo $global['global_email_signature']['field_key'];?>" rows="5" cols="53"  class="validate[required] textbox"><?php echo $global['global_email_signature']['field_value'];?></textarea></td>
                            </tr>                 <?php } ?>                 					
						      <tr>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td><input type="submit" onclick="return checkLength()" value=" <?php echo lang('change') ?> " onmouseover="this.className='normal-bttn1'" onmouseout="this.className='normal-bttn'" class="normal-bttn" /></td>
                            </tr>
						
                          </table>
                        </form></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
